#include "common/linkage.h"

#include "linux/stddef.h"

#include "lib/string.h"

struct cdev *cdev_alloc(void) {
  return NULL;
}

void cdev_init(struct cdev* cdev, struct file_operations* fops) {
  memset(cdev, 0, sizeof(struct cdev));
  INIT_LIST_HEAD(&cdev->list);
  cdev->kobj.ktype = &ktype_cdev_default;
  kobject_init(&cdev->kobj);
  cdev->fops = fops;
}



